package edu.uafs.museum;

import android.app.Activity;
import android.content.Intent;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class DisplayExhibitActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) 
	{
		super.onCreate(savedInstanceState);
		
		//set the layout to the display exhibit layout
		setContentView(R.layout.exhibition);
		
		//get the intent
		Intent intent = getIntent();
		
		//get the link
		String link = intent.getStringExtra(DisplayExhibitsActivity.KEY_LINK);
		
		WebView exhibitView = (WebView)findViewById(R.id.exhibitionWebView);
        WebSettings settings=exhibitView.getSettings();
        settings.setPluginsEnabled(true);
        settings.setJavaScriptEnabled(true);
        exhibitView.loadUrl(link);
	}

}
